Skip to main content

variableNames

Type

function

Summary

Returns a list of all parameters, local variables, and global variables.

Syntax

the variableNames
variableNames()

Description

Use the variableNames function to find out which sources of value are available to the current handler, or to see whether a variable name is available for use.

Examples

the variableNames
repeat with x=1 to the number of items of line 4 of the variableNames

Value

NameTypeDescription

return

The variableNames function returns a value consisting of four lines :

  1. Parameters passed to the current handler (including leading '@' for parameters passed by-reference)
  2. Local variables created in the current handler
  3. Local variables created in the current script but outside all handlers
  4. Global variables

Within each line, the variable or parameter names are separated by commas.

glossary: parameter, handler, variable, return, local variable

keyword: lines

command: global, local

control structure: function

function: functionNames, paramCount, globalNames, value

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?